<div class="search-result">
  <h2><%= t('search.results_for')%> "<%=params[:query]%>"</h2>

  <% if @search_results.docs.empty? -%>
    <p id="content">
    <%= t('search.no_results') %>
    </p>
  <% end -%>
  <ul>
  <% for document in @search_results.docs -%>
    <li>
	    <% @snippet = @search_highlights[document] if @search_highlights[document] -%>
	    <%= link_to(@snippet, document_path(document)) %> <br/>
	    <em><%= document.collection.title %> -- <%= document.section.title %></em>
    </li>
  <% end -%>
  </ul>

  <%= will_paginate @search_results, :prev_label=>t('navigate.previous_page'),
      :next_label=>t('navigate.next_page') %>

</div>

